import Vue from "vue";
import {getOrderList} from "@/api/order";


export default {
  state: {
    OrderList:[],
  },
  getters: {
    // getOrderList: (state) => state.OrderList,
  },
  mutations: {
    // setOrderList(state, value) {
    //   state.OrderList = value;
    // },
  },
  actions: {
    // async selectOrderList({ commit, state }) {
    //   const { data } = await getOrderList();
    //   if (!data) {
    //     Vue.prototype.$baseMessage("暂无订单列表", "error");
    //     return false;
    //   }else {
    //     // state.OrderList = data
    //     console.log(123,data)
    //     commit("setOrderList", data);
    //   }
    // },
  }
}
